package com.systemframework.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.systemframework.sys.dto.request.SysUserRequestDTO;
import com.systemframework.sys.dto.response.SysUserResponseDTO;
import com.systemframework.sys.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * @author summer
 * @date 2023-03-08 14:21
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 查询列表
     * @param sysUserRequestDTO
     * @param page
     * @return
     */
    Page<SysUserResponseDTO> findLists(@Param("sysUserRequestDTO") SysUserRequestDTO sysUserRequestDTO, Page<SysUserResponseDTO> page);

    /**
     * 用户信息
     * @param userId
     * @return
     */
    SysUserResponseDTO info(@Param("userId") Integer userId);

    /**
     * 更改用户状态
     * @param id
     */
    void changeUser(@Param("id") Integer id);
}
